package Com.Hupochuan.Vo;

import java.sql.Timestamp;

import Com.Hupochuan.Uil.Util.TimeStringUtil;

/*
 * 资源类型表 SourceType
 */
public class SourceType {				
	//					字段名				字段类型			中文解析		缺省(Default)	备注
	private Long 		id;//				INT				ID			AUTO_INCREMENT	PRIMARY KEY
	private String 		name;//				VARCHAR(50)		类型名称		(空字符串)		UNIQUE KEY
	private String 		logoPositionY;//	VARCHAR(50)		图标位置Y坐标	(空字符串)
	private String 		searchUrl;//		VARCHAR(200)	搜索前缀		(空字符串)
	private Long 		adDuration;//		INT				广告时间		0
	private Long 		isShow;//			INT				是否显示		1				0不显示 1显示
	private Float 		weight;//			FLOAT			权重			0	
	private Timestamp 	createTime;//		DATETIME		创建时间		No default	
	private Timestamp 	updateTime;//		DATETIME		更新时间		No default	
	
	/*
	 * 获得转换的时间字符串
	 */
	public String getCreateTimeString() {
		return TimeStringUtil.getObject().timeToTimeString(this.createTime);
	}
	public String getUpdateTimeString() {
		return TimeStringUtil.getObject().timeToTimeString(this.updateTime);
	}
	
	/*
	 * 参数注入
	 */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Float getWeight() {
		return weight;
	}
	public void setWeight(Float weight) {
		this.weight = weight;
	}
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public Timestamp getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
	public String getLogoPositionY() {
		return logoPositionY;
	}
	public void setLogoPositionY(String logoPositionY) {
		this.logoPositionY = logoPositionY;
	}
	public String getSearchUrl() {
		return searchUrl;
	}
	public void setSearchUrl(String searchUrl) {
		this.searchUrl = searchUrl;
	}
	public Long getAdDuration() {
		return adDuration;
	}
	public void setAdDuration(Long adDuration) {
		this.adDuration = adDuration;
	}
	public Long getIsShow() {
		return isShow;
	}
	public void setIsShow(Long isShow) {
		this.isShow = isShow;
	}
}
